package com.heima.user.feign;

import com.heima.common.dto.ResponseResult;
import com.heima.user.dto.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @description:
 * @author: MediaFeign
 * @time: 2022/6/27
 */
@FeignClient("leadnews-media")
public interface MediaFeign {
    @PostMapping("/api/v1/user")//保存自媒体用户
    public ResponseResult<WmUser> saveWmUser(@RequestBody WmUser wmUser);

    @PutMapping("/api/v1/user")//保存更新自媒体用户
    public ResponseResult<WmUser> updateWmUser(@RequestBody WmUser wmUser);
}
